import request from '@/router/axios';
export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-oem/oem/division/division_project/pageList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (projectCode) => {
  return request({
    url: '/api/rb-oem/oem/division/division_project/detail',
    method: 'get',
    params: {
      projectCode
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/rb-oem/oem/division/division_project/add',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/rb-oem/oem/division/division_project/change',
    method: 'post',
    data: row
  })
}